import { Component } from '@angular/core';
import {  NavController, NavParams } from 'ionic-angular';

/**
 * Generated class for the ClassifyPage page.
 *
 * See https://ionicframework.com/docs/components/#navigation for more info on
 * Ionic pages and navigation.
 */

@Component({
  selector: 'page-classify',
  templateUrl: 'classify.html',
})
export class ClassifyPage {

  bodys=[
    {name:"热门精选",index:"A",children:[
      {name:"商品1",id:"1",img:""},
      {name:"商品2",id:"2",img:""},
      {name:"商品3",id:"3",img:""}
    ]},
    {name:"美容彩妆",index:"B",children:[
      {name:"商品1",id:"1",img:""},
      {name:"商品2",id:"2",img:""},
      {name:"商品3",id:"3",img:""}
    ]},
    {name:"母婴专区",index:"C",children:[
      {name:"商品1",id:"1",img:""},
      {name:"商品2",id:"2",img:""},
      {name:"商品3",id:"3",img:""}
    ]},
    {name:"箱包配饰",index:"D",children:[
      {name:"商品1",id:"1",img:""},
      {name:"商品2",id:"2",img:""},
      {name:"商品3",id:"3",img:""}
    ]},
    {name:"家居个护",index:"E",children:[
      {name:"商品1",id:"1",img:""},
      {name:"商品2",id:"2",img:""},
      {name:"商品3",id:"3",img:""}
    ]}
  ]

  constructor(public navCtrl: NavController, public navParams: NavParams) {
    
  }

  conver(obj){
    return JSON.stringify(obj);
  }

  ionViewDidLoad() {
    console.log('ionViewDidLoad ClassifyPage');
  }

}
